
<input type="hidden" name="id" value="${ticket.id}" />
<div class="detailsBox clearfix">
	<div class="openBox">
		<h3 class="mt20">
			<i class="jtIco"></i>工单信息
		</h3>
		<div class="detaiTab">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">标题:</td>
						<td colspan="1"><input type="text" name="title" style="width: 90%" value="${ticket.title}" class="action-valid-field" data-action-valid-rule="required" /><span class="action-field-error" for="title"></span></td>
					</tr>
				</tbody>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">项目:</td>
						<td><@select dataSouceType="validProject" dataSouceFrom="project" renderonly="true" data\-url="/ticket/getTicketTypeHtml" data\-action\-html="#ticketTypeHtml" value="${ticket.projectId}"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">类型:</td>
						<td><@select dataSouceType="ticketType" name="ticketTypeCode" data\-url="/ticket/getTicketTypeTemplate" data\-action\-html="#ticketTypeTemplate" value="${ticket.ticketTypeCode}" renderonly="true"/></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%">优先级:</td>
						<td><@select dataSouceType="priority" class="tabInp" name="priority" value="${ticket.priority}" class="action-valid-field" data\-action\-valid\-rule="required"/><span class="action-field-error" for="priority"></span></td>
					</tr>
					<tr>
						<td align="right" class="bg" width="18%"><span title="报告人默认为创建人，报告人不是汇报人，所以不能搞混了，当工单创建后需要给到某个人做需求细化，需求细化的人就是报告人"><span class=" wenhaoIco"></span>报告人:</span></td>
						<td><@autocomplete url="/user/autocomplete?key=" name="reporterName" value="${ticket.reporterName}" hideIdName="reporter" hideIdValue="${ticket.reporter}" class="action-valid-field" data\-action\-valid\-rule=""/><span class="action-field-error" for="reporterName"></span></td>
					</tr>
				</tbody>
			</table>
			<@include file="ticket/ticketTypeTemplate/edit/${ticket.ticketTypeCode}"/> <#if ticket.id==null> <@include file="ticket/ticketTypeTemplate/plan/${ticket.ticketTypeCode}"/> </#if>

			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<td align="right" class="bg" width="18%">描述:</td>
						<td colspan="3"><@url value='/attachment/upload' assign="uploadUrl"/> <@htmlEditor name="descriptions" style="width: 100%;height:200px;" data\-upload\-url="${uploadUrl}" class="action-valid-field"
							data\-action\-valid\-rule="required">${ticket.descriptions}</@htmlEditor> <span class="action-field-error" for="descriptions"></span>
						</td>
					</tr>

				</tbody>
			</table>
			<input type="hidden" name="projectId" value="${ticket.projectId}" /> <input type="hidden" name="ticketTypeCode" value="${ticket.ticketTypeCode}" /> <input type="hidden" name="parentTicketId" value="${ticket.parentTicketId}" />
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tbody>

					<tr>
						<td align="right" class="bg" width="18%"></td>
						<td colspan="3"><input class="btn_auto_30 btn_blue" type="submit" value="保存" /></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
